package com.example.dee.config;

import com.example.dee.service.SysService;

import javax.annotation.Resource;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @ClassName ParamConfig
 * @创建人 李劲松
 * @创建时间 2022/7/20 10:29
 * @描述 参数配置类
 */
public class ParamConfig {

    /** 车辆数据操作参数 */
    public final static String CAR_DATA_FUNC_ADD = "add";
    public final static String CAR_DATA_FUNC_DELETE = "delete";
    public final static String CAR_DATA_FUNC_UPDATE = "update";
    public final static String CAR_DATA_FUNC_SELECT = "select";
    /** 口令操作参数*/
    public static final String COMMAND_FUNC_UPDATE = "update";

    /** A机构向B机构发送数据的链接接口 */
    public final static String URL_B = "http://localhost:8081/receive";
    /** A机构传输数据口令 */

    /** B机构返回状态码：1.成功，2.失败*/
    public static final Integer STATE_TRUE = 1;
    public static final Integer STATE_FALSE = 2;

    /** 车辆数据记录state:0为删除，1为修改，默认为0*/
    public static final String CAR_RECORD_DELETE= "0";
    public static final String CAR_RECORD_UPDATE = "1";

    /** 上传数据的线程池*/
    public static final ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10);

    public static final int RECORD_SHOWNUM = 10;
    public static final int CAR_RECORD_SHOWNUM = 10;

}
